<%@ page import="com.pts.db.DbUtils" %>
<%@ page import="java.sql.Connection" %>
<%@ page import="java.sql.ResultSet" %>
<%@ page import="java.sql.PreparedStatement" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: 28700
  Date: 2022/6/14
  Time: 8:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%
    DbUtils du = new DbUtils();
    Connection conn = du.getConn();
    PreparedStatement pst = conn.prepareStatement("show tables");
    ResultSet rs = pst.executeQuery();
    while(rs.next()){
        out.print(rs.getString(1) + "<br>");
    }
%>

<c:forEach begin="1" end="10" var="i">
    <h3>hello - ${i}</h3>
</c:forEach>
</body>
</html>
